package com.oop.demo02;
//一个项目只有一个主启动类，一个主方法
public class Application {
    public static void main(String[] args) {
    //类是抽象的，需要实例化，用new方法来实例化
        //类实例化后会返回一个对象，同一类可以new出很多实例化对象
        Students xiaoming  = new Students();
        Students xiaohong = new Students();
        xiaoming.name ="小明";
        xiaohong.name = "小红";
        System.out.println(xiaoming.name);
        System.out.println(xiaohong.name);
        xiaoming.age = 18;
        System.out.println(xiaoming.age);
        System.out.println(xiaohong.age);
        xiaoming.gender = true;
        System.out.println(xiaoming.gender);
        System.out.println(xiaohong.gender);

    }
}
